package com.example.javaend.Controller.HelloJavaSpringBoot;

import org.springframework.web.bind.annotation.*;

@RestController
public class HelloJavaSpringboot {
    @GetMapping("/")

    public String HelloJavaSpringBoot(){
        return "hello Java——SpringBooot" ;
    }

    @GetMapping("/error")
    public String error(){
        return "发生错误 检查网络链接" ;
    }
}
